// $ANTLR 3.1.2 C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g 2009-03-26 21:11:27

 package real;


import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;

public class RealSetQueryLexer extends Lexer {
    public static final int CMT=14;
    public static final int WS=13;
    public static final int NEWLINE=8;
    public static final int QUESTION=4;
    public static final int RCURLY=7;
    public static final int ASSIGN=10;
    public static final int LCURLY=6;
    public static final int SEMICOLON=5;
    public static final int INT=11;
    public static final int ID=9;
    public static final int EOF=-1;
    public static final int STRING=12;

    // delegates
    // delegators

    public RealSetQueryLexer() {;} 
    public RealSetQueryLexer(CharStream input) {
        this(input, new RecognizerSharedState());
    }
    public RealSetQueryLexer(CharStream input, RecognizerSharedState state) {
        super(input,state);

    }
    public String getGrammarFileName() { return "C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g"; }

    // $ANTLR start "QUESTION"
    public final void mQUESTION() throws RecognitionException {
        try {
            int _type = QUESTION;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:11:10: ( '?' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:11:12: '?'
            {
            match('?'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "QUESTION"

    // $ANTLR start "SEMICOLON"
    public final void mSEMICOLON() throws RecognitionException {
        try {
            int _type = SEMICOLON;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:12:11: ( ';' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:12:13: ';'
            {
            match(';'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "SEMICOLON"

    // $ANTLR start "LCURLY"
    public final void mLCURLY() throws RecognitionException {
        try {
            int _type = LCURLY;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:13:8: ( '{' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:13:10: '{'
            {
            match('{'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "LCURLY"

    // $ANTLR start "RCURLY"
    public final void mRCURLY() throws RecognitionException {
        try {
            int _type = RCURLY;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:14:8: ( '}' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:14:10: '}'
            {
            match('}'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "RCURLY"

    // $ANTLR start "NEWLINE"
    public final void mNEWLINE() throws RecognitionException {
        try {
            int _type = NEWLINE;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:15:9: ( '\\n' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:15:11: '\\n'
            {
            match('\n'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "NEWLINE"

    // $ANTLR start "ASSIGN"
    public final void mASSIGN() throws RecognitionException {
        try {
            int _type = ASSIGN;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:74:9: ( '=' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:74:11: '='
            {
            match('='); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "ASSIGN"

    // $ANTLR start "STRING"
    public final void mSTRING() throws RecognitionException {
        try {
            int _type = STRING;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:76:9: ( '\"' ( . )* '\"' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:76:11: '\"' ( . )* '\"'
            {
            match('\"'); 
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:76:15: ( . )*
            loop1:
            do {
                int alt1=2;
                int LA1_0 = input.LA(1);

                if ( (LA1_0=='\"') ) {
                    alt1=2;
                }
                else if ( ((LA1_0>='\u0000' && LA1_0<='!')||(LA1_0>='#' && LA1_0<='\uFFFF')) ) {
                    alt1=1;
                }


                switch (alt1) {
            	case 1 :
            	    // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:76:15: .
            	    {
            	    matchAny(); 

            	    }
            	    break;

            	default :
            	    break loop1;
                }
            } while (true);

            match('\"'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "STRING"

    // $ANTLR start "INT"
    public final void mINT() throws RecognitionException {
        try {
            int _type = INT;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:78:5: ( ( '0' .. '9' )+ )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:78:9: ( '0' .. '9' )+
            {
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:78:9: ( '0' .. '9' )+
            int cnt2=0;
            loop2:
            do {
                int alt2=2;
                int LA2_0 = input.LA(1);

                if ( ((LA2_0>='0' && LA2_0<='9')) ) {
                    alt2=1;
                }


                switch (alt2) {
            	case 1 :
            	    // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:78:9: '0' .. '9'
            	    {
            	    matchRange('0','9'); 

            	    }
            	    break;

            	default :
            	    if ( cnt2 >= 1 ) break loop2;
                        EarlyExitException eee =
                            new EarlyExitException(2, input);
                        throw eee;
                }
                cnt2++;
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "INT"

    // $ANTLR start "ID"
    public final void mID() throws RecognitionException {
        try {
            int _type = ID;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:79:7: ( ( '_' | 'a' .. 'z' | 'A' .. 'Z' ) ( '_' | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' )* )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:79:11: ( '_' | 'a' .. 'z' | 'A' .. 'Z' ) ( '_' | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' )*
            {
            if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
                input.consume();

            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;}

            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:79:35: ( '_' | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' )*
            loop3:
            do {
                int alt3=2;
                int LA3_0 = input.LA(1);

                if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {
                    alt3=1;
                }


                switch (alt3) {
            	case 1 :
            	    // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:
            	    {
            	    if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
            	        input.consume();

            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;}


            	    }
            	    break;

            	default :
            	    break loop3;
                }
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "ID"

    // $ANTLR start "WS"
    public final void mWS() throws RecognitionException {
        try {
            int _type = WS;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:80:7: ( ( ' ' | '\\t' )+ )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:80:11: ( ' ' | '\\t' )+
            {
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:80:11: ( ' ' | '\\t' )+
            int cnt4=0;
            loop4:
            do {
                int alt4=2;
                int LA4_0 = input.LA(1);

                if ( (LA4_0=='\t'||LA4_0==' ') ) {
                    alt4=1;
                }


                switch (alt4) {
            	case 1 :
            	    // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:
            	    {
            	    if ( input.LA(1)=='\t'||input.LA(1)==' ' ) {
            	        input.consume();

            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;}


            	    }
            	    break;

            	default :
            	    if ( cnt4 >= 1 ) break loop4;
                        EarlyExitException eee =
                            new EarlyExitException(4, input);
                        throw eee;
                }
                cnt4++;
            } while (true);

            _channel=HIDDEN;

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "WS"

    // $ANTLR start "CMT"
    public final void mCMT() throws RecognitionException {
        try {
            int _type = CMT;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:81:7: ( '/*' ( . )* '*/' )
            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:81:11: '/*' ( . )* '*/'
            {
            match("/*"); 

            // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:81:16: ( . )*
            loop5:
            do {
                int alt5=2;
                int LA5_0 = input.LA(1);

                if ( (LA5_0=='*') ) {
                    int LA5_1 = input.LA(2);

                    if ( (LA5_1=='/') ) {
                        alt5=2;
                    }
                    else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) {
                        alt5=1;
                    }


                }
                else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) {
                    alt5=1;
                }


                switch (alt5) {
            	case 1 :
            	    // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:81:16: .
            	    {
            	    matchAny(); 

            	    }
            	    break;

            	default :
            	    break loop5;
                }
            } while (true);

            match("*/"); 

            _channel=HIDDEN;

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
    // $ANTLR end "CMT"

    public void mTokens() throws RecognitionException {
        // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:8: ( QUESTION | SEMICOLON | LCURLY | RCURLY | NEWLINE | ASSIGN | STRING | INT | ID | WS | CMT )
        int alt6=11;
        switch ( input.LA(1) ) {
        case '?':
            {
            alt6=1;
            }
            break;
        case ';':
            {
            alt6=2;
            }
            break;
        case '{':
            {
            alt6=3;
            }
            break;
        case '}':
            {
            alt6=4;
            }
            break;
        case '\n':
            {
            alt6=5;
            }
            break;
        case '=':
            {
            alt6=6;
            }
            break;
        case '\"':
            {
            alt6=7;
            }
            break;
        case '0':
        case '1':
        case '2':
        case '3':
        case '4':
        case '5':
        case '6':
        case '7':
        case '8':
        case '9':
            {
            alt6=8;
            }
            break;
        case 'A':
        case 'B':
        case 'C':
        case 'D':
        case 'E':
        case 'F':
        case 'G':
        case 'H':
        case 'I':
        case 'J':
        case 'K':
        case 'L':
        case 'M':
        case 'N':
        case 'O':
        case 'P':
        case 'Q':
        case 'R':
        case 'S':
        case 'T':
        case 'U':
        case 'V':
        case 'W':
        case 'X':
        case 'Y':
        case 'Z':
        case '_':
        case 'a':
        case 'b':
        case 'c':
        case 'd':
        case 'e':
        case 'f':
        case 'g':
        case 'h':
        case 'i':
        case 'j':
        case 'k':
        case 'l':
        case 'm':
        case 'n':
        case 'o':
        case 'p':
        case 'q':
        case 'r':
        case 's':
        case 't':
        case 'u':
        case 'v':
        case 'w':
        case 'x':
        case 'y':
        case 'z':
            {
            alt6=9;
            }
            break;
        case '\t':
        case ' ':
            {
            alt6=10;
            }
            break;
        case '/':
            {
            alt6=11;
            }
            break;
        default:
            NoViableAltException nvae =
                new NoViableAltException("", 6, 0, input);

            throw nvae;
        }

        switch (alt6) {
            case 1 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:10: QUESTION
                {
                mQUESTION(); 

                }
                break;
            case 2 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:19: SEMICOLON
                {
                mSEMICOLON(); 

                }
                break;
            case 3 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:29: LCURLY
                {
                mLCURLY(); 

                }
                break;
            case 4 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:36: RCURLY
                {
                mRCURLY(); 

                }
                break;
            case 5 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:43: NEWLINE
                {
                mNEWLINE(); 

                }
                break;
            case 6 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:51: ASSIGN
                {
                mASSIGN(); 

                }
                break;
            case 7 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:58: STRING
                {
                mSTRING(); 

                }
                break;
            case 8 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:65: INT
                {
                mINT(); 

                }
                break;
            case 9 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:69: ID
                {
                mID(); 

                }
                break;
            case 10 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:72: WS
                {
                mWS(); 

                }
                break;
            case 11 :
                // C:\\Users\\ewger\\workspace\\real\\src\\RealSetQuery.g:1:75: CMT
                {
                mCMT(); 

                }
                break;

        }

    }


 

}